﻿<Window x:Class="WpfHardCodedStringsFinder.Views.ReplacementWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Strings export window"
        Width="580"
        Height="400">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="27" />
			<RowDefinition />
			<RowDefinition Height="30" />
		</Grid.RowDefinitions>
		<StackPanel Grid.Row="0" Orientation="Horizontal">
			<TextBlock Margin="3,0,2,0"
			           VerticalAlignment="Center"
			           Text="Select resource file for export:" />
			<ComboBox x:Name="cmbResourceFile"
			          Width="160"
			          Height="23"
			          Margin="2,0,0,0"
			          ItemsSource="{Binding Path=ResoucesFiles}">
				<ComboBox.ItemTemplate>
					<DataTemplate>
						<TextBlock Text="{Binding Name}" />
					</DataTemplate>
				</ComboBox.ItemTemplate>
			</ComboBox>
			<Button x:Name="btnCreateResource"
			        Width="50"
			        Height="24"
			        Margin="3,0,0,0"
			        VerticalAlignment="Center"
			        Click="btnCreateResource_Click"
			        Content="Create" />
		</StackPanel>
		<ListView x:Name="lstView" Grid.Row="1">
			<ListView.View>
				<GridView>
					<GridView.Columns>
						<GridViewColumn Width="55" Header="Process">
							<GridViewColumn.CellTemplate>
								<DataTemplate>
									<CheckBox IsChecked="{Binding Path=IsProcess, Mode=TwoWay}" />
								</DataTemplate>
							</GridViewColumn.CellTemplate>
						</GridViewColumn>
						<GridViewColumn Width="120"
						                DisplayMemberBinding="{Binding FileName}"
						                Header="File" />
						<GridViewColumn Width="235"
						                DisplayMemberBinding="{Binding Value}"
						                Header="Hard-coded string" />
						<GridViewColumn Width="140" Header="Rename">
							<GridViewColumn.CellTemplate>
								<DataTemplate>
									<TextBox Text="{Binding Path=RenameValue, Mode=TwoWay}" />
								</DataTemplate>
							</GridViewColumn.CellTemplate>
						</GridViewColumn>
					</GridView.Columns>
				</GridView>
			</ListView.View>
		</ListView>
		<StackPanel Grid.Row="2">
			<Button x:Name="btnProcess"
			        Click="btnProcess_Click"
			        Content="Begin process" />
		</StackPanel>
	</Grid>
</Window>
